﻿<ResourceDictionary 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Classic" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	xmlns:Controls="clr-namespace:PSE.Deployment.ConfigurationManager.Controls;assembly=PSE.Deployment.ConfigurationManager.Controls"
	mc:Ignorable="d">
	<Style x:Key="GroupBoxSetup" TargetType="{x:Type GroupBox}">
		<Setter Property="BorderBrush" Value="{x:Static Microsoft_Windows_Themes:ClassicBorderDecorator.ClassicBorderBrush}"/>
		<Setter Property="BorderThickness" Value="2"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type GroupBox}">
					<Grid SnapsToDevicePixels="true">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="6"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="*"/>
							<ColumnDefinition Width="6"/>
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto"/>
							<RowDefinition Height="Auto"/>
							<RowDefinition Height="*"/>
							<RowDefinition Height="6"/>
						</Grid.RowDefinitions>
						<Border Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="1" Grid.RowSpan="3" Background="{TemplateBinding Background}" BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}"/>
						<Border Grid.ColumnSpan="4" Grid.Row="1" Grid.RowSpan="3" BorderBrush="#FF909090" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3">
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FFFFFFFF" Offset="0"/>
									<GradientStop Color="#FFEAEAEA" Offset="0.998"/>
								</LinearGradientBrush>
							</Border.Background>
							<Border.OpacityMask>
								<VisualBrush>
									<VisualBrush.Visual>
										<Grid Width="200" Height="143.361666666667">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="7"/>
												<ColumnDefinition Width="Auto"/>
												<ColumnDefinition Width="*"/>
											</Grid.ColumnDefinitions>
											<Grid.RowDefinitions>
												<RowDefinition Height="6.6808333333333"/>
												<RowDefinition Height="*"/>
											</Grid.RowDefinitions>
											<Rectangle Fill="#FF000000" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2"/>
											<Rectangle Fill="#FF000000" Grid.Column="1" Grid.Row="1"/>
											<Rectangle Fill="#FF000000" Grid.Column="2" Grid.Row="0" Grid.RowSpan="2"/>
										</Grid>
									</VisualBrush.Visual>
								</VisualBrush>
							</Border.OpacityMask>
						</Border>
						<Border x:Name="Header" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Padding="3,0,3,0" Background="#FFFFFFFF">
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" RecognizesAccessKey="True"/>
						</Border>
						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="{TemplateBinding Padding}" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<!-- INI CONFIGURATION MANAGER -->
	<Style TargetType="{x:Type Controls:SimpleGroupBox}">
		<Setter Property="BorderBrush" Value="{x:Static Microsoft_Windows_Themes:ClassicBorderDecorator.ClassicBorderBrush}"/>
		<Setter Property="BorderThickness" Value="2"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Controls:SimpleGroupBox}">
					<Grid SnapsToDevicePixels="true">
						<Grid.ColumnDefinitions>
							<ColumnDefinition Width="6"/>
							<ColumnDefinition Width="Auto"/>
							<ColumnDefinition Width="*"/>
							<ColumnDefinition Width="6"/>
						</Grid.ColumnDefinitions>
						<Grid.RowDefinitions>
							<RowDefinition Height="Auto"/>
							<RowDefinition Height="Auto"/>
							<RowDefinition Height="*"/>
							<RowDefinition Height="6"/>
						</Grid.RowDefinitions>
						<Border Grid.Column="0" Grid.ColumnSpan="4" Grid.Row="1" Grid.RowSpan="3" Background="{TemplateBinding Background}" BorderBrush="Transparent" BorderThickness="{TemplateBinding BorderThickness}"/>
						<Border Grid.ColumnSpan="4" Grid.Row="1" Grid.RowSpan="3" BorderBrush="#FF8E99AD" BorderThickness="1,1,1,1" CornerRadius="3,3,3,3" Background="#4CFFFFFF">
							<Border.OpacityMask>
								<VisualBrush>
									<VisualBrush.Visual>
										<Grid Width="200" Height="143.361666666667">
											<Grid.ColumnDefinitions>
												<ColumnDefinition Width="7"/>
												<ColumnDefinition Width="Auto"/>
												<ColumnDefinition Width="*"/>
											</Grid.ColumnDefinitions>
											<Grid.RowDefinitions>
												<RowDefinition Height="6.6808333333333"/>
												<RowDefinition Height="*"/>
											</Grid.RowDefinitions>
											<Rectangle Fill="#FF000000" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2"/>
											<Rectangle Fill="#FF000000" Grid.Column="1" Grid.Row="1"/>
											<Rectangle Fill="#FF000000" Grid.Column="2" Grid.Row="0" Grid.RowSpan="2"/>
										</Grid>
									</VisualBrush.Visual>
								</VisualBrush>
							</Border.OpacityMask>
						</Border>
						<Border x:Name="Header" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Padding="3,0,3,0" CornerRadius="4,4,0,0" BorderThickness="1,1,1,0">
							<Border.BorderBrush>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#FF8C9CB3" Offset="0.391"/>
									<GradientStop Color="#00FFFFFF" Offset="1"/>
								</LinearGradientBrush>
							</Border.BorderBrush>
							<Border.Background>
								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
									<GradientStop Color="#7FABBCD6" Offset="0"/>
									<GradientStop Color="#00FFFFFF" Offset="1"/>
									<GradientStop Color="#FFFFFFFF" Offset="0.484"/>
									<GradientStop Color="#FFFFFFFF" Offset="0.489"/>
								</LinearGradientBrush>
							</Border.Background>
							<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" ContentSource="Header" RecognizesAccessKey="True"/>
						</Border>
						<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="{TemplateBinding Padding}" Grid.Column="1" Grid.ColumnSpan="2" Grid.Row="2"/>
					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<!-- FIM CONFIGURATION MANAGER -->
</ResourceDictionary>